﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SyndicateDAO.DatabaseObject;

namespace BigLotterySyndicate
{
    public partial class BaseMasterPage : System.Web.UI.MasterPage
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            if (DesignMode)
                return;

            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB");

        }      

        public string BgType
        {
            get;
            set;
        }

        public string PrintTransparentBG()
        {
            if (BgType != null)
            {
                switch (BgType)
                {
                    case draw.drawType.LOTTO:
                        return "style=\"background-image: url('/Assets/Images/lotto_transparent_bg.png');background-repeat: no-repeat;background-position:center top;\"";
                    case draw.drawType.HEALTHLOTTERY:
                        return "style=\"background-image: url('/Assets/Images/health_transparent_bg.png');background-repeat: no-repeat;background-position:center top;\"";
                    default:
                        return "style=\"background-image: url('/Assets/Images/euro_transparent_bg.png');background-repeat: no-repeat;background-position:center top;\"";
                }
            }
            else
                return "";
        }
    }
}